package com.wutongyu.mannyburger;

//订单信息封装类
public class Order {
    private int id;
    private String items;
    private String note;
    private double totalPrice;
    private String userPhone;
    private String timestamp;
    private String deliveryType; // 送餐方式："自提" 或 "外卖"
    private String deliveryAddress; // 送餐地址
    private String deliveryPhone; // 送餐电话

    public Order() {
        super();
    }

    public Order(int id, String items, String note, double totalPrice) {
        this.id = id;
        this.items = items;
        this.note = note;
        this.totalPrice = totalPrice;
    }

    public Order(int id, String items, String note, double totalPrice, String userPhone) {
        this.id = id;
        this.items = items;
        this.note = note;
        this.totalPrice = totalPrice;
        this.userPhone = userPhone;
    }

    public Order(int id, String items, String note, double totalPrice, String userPhone, String timestamp) {
        this.id = id;
        this.items = items;
        this.note = note;
        this.totalPrice = totalPrice;
        this.userPhone = userPhone;
        this.timestamp = timestamp;
    }
    
    public Order(int id, String items, String note, double totalPrice, String userPhone, String timestamp, 
                 String deliveryType, String deliveryAddress, String deliveryPhone) {
        this.id = id;
        this.items = items;
        this.note = note;
        this.totalPrice = totalPrice;
        this.userPhone = userPhone;
        this.timestamp = timestamp;
        this.deliveryType = deliveryType;
        this.deliveryAddress = deliveryAddress;
        this.deliveryPhone = deliveryPhone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }
    
    public String getDeliveryType() {
        return deliveryType;
    }

    public void setDeliveryType(String deliveryType) {
        this.deliveryType = deliveryType;
    }

    public String getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public String getDeliveryPhone() {
        return deliveryPhone;
    }

    public void setDeliveryPhone(String deliveryPhone) {
        this.deliveryPhone = deliveryPhone;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", items='" + items + '\'' +
                ", note='" + note + '\'' +
                ", totalPrice=" + totalPrice +
                ", userPhone='" + userPhone + '\'' +
                ", timestamp='" + timestamp + '\'' +
                ", deliveryType='" + deliveryType + '\'' +
                ", deliveryAddress='" + deliveryAddress + '\'' +
                ", deliveryPhone='" + deliveryPhone + '\'' +
                '}';
    }
}
